package com.digitalchina.frame.core.event;

import org.springframework.context.ApplicationEvent;

public class Event extends ApplicationEvent {

	public Event(Object source) {
		super(source);
	}

	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (!(o instanceof Event))
			return false;
		Event event = (Event) o;
		return source == null ? event.source == null : source.equals(event.source);
	}

	public int hashCode() {
		return source == null ? 0 : source.hashCode();
	}
}